package com.learn.dict;

import com.learn.dict.enums.DictLoadEnum;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 功能描述: 字典启动加载加载 <br/>
 * @author:         MI
 * @email:          448341911@qq.com
 * @createDate:     2023/10/27 23:14
 * @updateUser:     MI
 * @updateDate:     2023/10/27 23:14
 * @updateRemark:   修改内容
 * @version:        v1.0
 */
@Component
@Order(value = 2)
public class DictStartRunner implements ApplicationRunner {
    
    @Override
    public void run(ApplicationArguments args) throws Exception {
        try {
            DictLoadEnum.start();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
